<?php
  require '../header.php';
  $ConnectDB = new connectDB();
  $SQLList = new sqlList();

  $result = $ConnectDB->buildPreparedStatments($SQLList->SelectAllSong);
  $result->execute();
  $result->bind_result($idPoem, $title);
  $index = 1;
  while ( $rowSet = $result->fetch())
	{
	  $songId[$index] = $idPoem;
	  $songArr[$idPoem] = $title;
	  $index++;
	}

	$result->close();
  for($i=1; $i<=count($songArr); $i++)
	{
    print '"';
	  print $songId[$i];
	  print '"';
	  if($i == count($songArr))
	  {
	    break;
	  }
    print ',';
  }
?>